import request from '@/api/request'
/**
 * 
 * @param 获取实验室列表 
 */
export function getLaboratoryList (params) {
    return request({
      url: `/laboratory/getLaboratoryList`,
      method: 'get',
      params
    })
}


/**
 * 
 * @param 创建实验室 
 */
export function createLaboratory (params) {
  return request({
    url: `/laboratory/createLaboratory`,
    method: 'post',
    data:params
  })
}

/**
 * 
 * @param 获取实验室详情 
 */
export function getLaboratoryInfo (params) {
  return request({
    url: `/laboratory/getLaboratoryInfo`,
    method: 'get',
    params
  })
}

/**
 * 
 * @param 申请加入实验室 
 */
export function insertApply (params) {
  return request({
    url: `/apply/insertApply`,
    method: 'post',
    data: params
  })
}

/**
 * 
 * @param 同意加入实验室 
 */
export function consentApply (params) {
  return request({
    url: `/apply/consentApply`,
    method: 'post',
    data: params
  })
}


/**
 * 
 * @param 查看申请列表 
 */
export function getApplyList (params) {
  return request({
    url: `/apply/getApplyList`,
    method: 'get',
    params
  })
}


/**
 * 
 * @param 获取用户实验室列表 
 */
export function getUserList(params) {
  return request({
    url: `/user/getUserList`,
    method: 'get',
    params
  })
}

/**
 * 
 * @param 移除实验室用户 
 */
export function removeUserForLaboratory(params) {
  return request({
    url: `/laboratory/removeUserForLaboratory`,
    method: 'get',
    params
  })
}